var fightAttri = function (opts) {
    //血量
    this.hp = opts.hp || 0
    //最大血量
    this.maxHp = opts.maxHp || 0
    //攻击力
    this.attack = opts.attack || 0
    //浮动攻击力
    this.extraAttack = opts.extraAttack || 0
    //防御
    this.defend = opts.defend || 0
    //暴击伤害
    this.critHurt = opts.critHurt || 0
    //暴击
    this.crit = opts.crit || 0
    //韧性
    this.toughness = opts.toughness || 0
    //命中
    this.hit = opts.hit || 0
    //闪避
    this.avoid = opts.avoid || 0
    //控制
    this.control = opts.control || 0
    //抗性
    this.resistance = opts.resistance || 0
    //治疗
    this.cure = opts.cure || 0
    //无视防御
    this.reduceDefend = opts.reduceDefend || 0
    //无视防御百分比
    this.reduceDefendPer = opts.reduceDefendPer || 0
    //吸血百分比
    this.vampirePer = opts.vampirePer || 0
    //每回合回血
    this.recoverHp = opts.recoverHp || 0
    //伤害减免
    this.reduceDamagePer = opts.reduceDamagePer || 0
    //物理伤害减免
    this.reducePhysicalDamagePer = opts.reduceDamagePer || 0
    //技能伤害减免
    this.reduceSkillDamagePer = opts.reduceDamagePer || 0
    //战斗状态
    this.battleStatus = opts.battleStatus || 0
    //状态
    this.status = opts.status || 0 //1:无法回血
    //技能序号
    this.skillPos =  0
    //战斗位置
    this.pos = opts.pos || 0
    //技能
    this.skills = opts.skills || [0]
    //角色名字
    this.name = opts.name || ''
    //类型 1:人物2:宠物：3：怪物
    this.type = opts.type || 1
    //暴击率
    this.critRate = opts.critRate || 0
    //韧性率
    this.toughnessRate = opts.toughnessRate || 0
    //命中率
    this.hitRate = opts.hitRate || 0
    //闪避率
    this.avoidRate = opts.avoidRate || 0
}

module.exports = fightAttri